home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
minix
/
libsrc~1.z
/
libsrc~1
/
times.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-12-28
|
308 b
|
16 lines
#include "lib.h"
#include <sys/types.h>
#include <sys/times.h>
PUBLIC clock_t times(buf)
struct tms *buf;
{
int k;
k = callm1(FS, TIMES, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
buf->tms_utime = M.m4_l1;
buf->tms_stime = M.m4_l2;
buf->tms_cutime = M.m4_l3;
buf->tms_cstime = M.m4_l4;
return(k);
}